package com.quizzer.system.dto.question.subject;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 大类别更新 DTO
 * 用于更新大类别信息
 *
 * @author rong
 * @date 2025/10/7 18:19
 */
@Data
@ApiModel(description = "大类别更新 DTO")
public class SubjectUpdateDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "大类别ID", required = true, example = "1")
    @NotNull(message = "大类别ID不能为空")
    private Long id;

    @ApiModelProperty(value = "大类别名称，例如Java、计算机基础", required = true, example = "Java")
    @NotBlank(message = "大类别名称不能为空")
    private String name;

    @ApiModelProperty(value = "类别描述", example = "Java相关课程题目")
    private String description;

    @ApiModelProperty(value = "大类别图片地址，例如封面图", example = "https://example.com/java.jpg")
    private String imageUrl;

    @ApiModelProperty(value = "排序字段，数值越小越靠前", example = "1")
    private Integer sort;
}
